package com.ssh.tts.service;

import java.util.List;

import com.ssh.tts.dao.TrainDao;
import com.ssh.tts.model.Train;

public class TrainService {
	
	private TrainDao td = new TrainDao();
	
	/**
	 * 根据车次查询
	 * @param train
	 * @return
	 */
	public List<Train> queryTrain(Train train){
		return td.queryTrain(train);
	}
	
	/**
	 * 根据车号查询
	 * @param trainid
	 * @return
	 */
	public List<Train> queryTrainByTrainId(String trainid){
		return td.queryTrainByTrainId(trainid);
	} 
}
